#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QSoundEffect>
#include <QTimer>
#include "start.h"
#include "mutigame.h"
#include "waitingroom.h"
#include "transiver.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow() override;
    void addZombie();
    void check();
    void initClient();

private:
    start *startPage;
    MutiGame *mutigamePage;
    waitingroom *waitingPage;
    Transiver *transiver;
    QTcpSocket *client;
    QString username;



public slots:
    void showWaitingRoom(QString username);
    void showMutiGame();
    void setFaction(int select, QString username);

};

#endif // MAINWINDOW_H
